<?php
   // phpinfo();
   $long = $_POST['long'];
    class  cercle {
    	private $long;
		public function __construct($long){
			$this -> long = $long;
		}
		public function  mj1(){
			return 	($this -> long)*($this -> long)*pi();
		}
		public function  zc1(){
			return 	($this -> long)*2*pi();
		}
    }
	$cer1= new cercle($long);
	$mj1 = $cer1->mj1();
	$zc1 = $cer1->zc1();
	$json=array("mj1"=>$mj1,"zc1"=>$zc1);
	echo json_encode($json) ;
?>